package com.briup.smartlabs.bean;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "用户模型")
public class SysUser {
	@ApiModelProperty(value = "用户id，更新时必须赋值，插入时无需赋值")
    private Long userId;

	@ApiModelProperty(value = "用户名/登录名称",required = true)
    private String username;

	@ApiModelProperty(value = "真实姓名")
    private String realname;

	@ApiModelProperty(value = "密码")
    private String password;

	@ApiModelProperty(value = "邮箱")
    private String email;

	@ApiModelProperty(value = "电话")
    private String mobile;

	@ApiModelProperty(value = "账户状态，1=正常，0=禁用",
			allowableValues = "0,1",example = "1")
    private Byte status = 1;

    private Long createUserId;

    private Date createTime = new Date();

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname == null ? null : realname.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}